package com.seqb.common.task;

import com.seqb.manage.subject.service.SubjectClockInService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author lilinshen
 * @title 请填写标题
 * @description 请填写相关描述
 * @date 2019/12/3
 */
@Component
public class SubjectClockInJob implements Job {
    private static final Logger LOGGER = LoggerFactory.getLogger(SubjectClockInJob.class);
    @Autowired
    private SubjectClockInService subjectClockInService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        //每天凌晨创建科目每天打卡的数据
        LOGGER.info("每天凌晨创建科目每天打卡的数据开始------------");
        subjectClockInService.createDailyClockIn();
        LOGGER.info("每天凌晨创建科目每天打卡的数据结束------------");
    }

}
